<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ProductTokenAddLock extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('product_tokens', function (Blueprint $table) {
            $table->string('lock_type', 16)->nullable()->comment('锁定类型, 销售/肓盒/空投');
            $table->integer('lock_refer_id')->nullable()->comment('关联数据ID');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('product_tokens', function (Blueprint $table) {
            $table->dropColumn(['lock_type', 'lock_refer_id']);
        });
    }
}
